# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=oha
pkgver=0.4.1
pkgrel=0
pkgdesc="HTTP load generator, inspired by rakyll/hey with tui animation"
url="https://github.com/hatoo/oha"
#arch="all !s390x !mips !mips64" # limited by cargo
license="MIT"
makedepends="cargo openssl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/hatoo/oha/archive/v$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/oha "$pkgdir"/usr/bin/oha
}

sha512sums="848d4a7d09e05c4afe14eaf76d4aba0d5c142aeb98f47dff4a0d3775b69224d0bcbb17c9c08c120d4c7f74dae0706bc443362452a893336e3e231a8649255dd3  oha-0.4.1.tar.gz"
